package com.oa.modules.approvalsec1.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.oa.modules.approvalsec1.entity.ProjectEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * project表
 *
 * @author jiangwei
 * @email 785297226@qq.com
 * @date 2021-12-10 09:24:51
 */
@Mapper
public interface ProjectDao extends BaseMapper<ProjectEntity> {


    /**
     * 查询总条数
     *
     * @author jiangwei
     * @email 785297226@qq.com
     * @date 2021-12-10 09:24:51
     * @Description 查询分页数据
     */
    long findPage(@Param("params") Map<String, Object> params);

    /**
     * 挂图作战列表条数
     * @param params
     * @return
     */
    long gtzzPage(@Param("params") Map<String, Object> params);

    /**
     * 查询分页数据
     *
     * @author jiangwei
     * @email 785297226@qq.com
     * @date 2021-12-10 09:24:51
     * @Description 查询分页数据
     */
    List<ProjectEntity> findRecords(IPage<ProjectEntity> page, @Param("params") Map<String, Object> params);

    /**
     * 挂图作战列表
     * @param page
     * @param params
     * @return
     */
    List<ProjectEntity> gtzzList(IPage<ProjectEntity> page, @Param("params") Map<String, Object> params);


}
